import static org.junit.Assert.*;

import java.math.BigDecimal;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class CreditCardTest {

	CreditCard testCard;
	
	@Before
	public void setUp() throws Exception {
		Customer testCustomer = new Customer("test first name", "test last name", "test street", "test town", "test zip", "test country");
		testCard = new CreditCard(testCustomer, new BigDecimal("-1000.00"));
	}

	@After
	public void tearDown() throws Exception {
		testCard = null;
	}

	@Test
	public void testPay() {
		assertTrue(testCard.useCredit(new BigDecimal("-100.0")));
	}

}
